import request from '@/utils/request'

// 查询投资策略列表
export function listBfInvestStrategy(query) {
  return request({
    url: '/strategy/bfInvestStrategy/list',
    method: 'get',
    params: query
  })
}

// 查询投资策略详细
export function getBfInvestStrategy(id) {
  return request({
    url: '/strategy/bfInvestStrategy/' + id,
    method: 'get'
  })
}

// 保存投资策略
export function saveBfInvestStrategy(data) {
  return request({
    url: '/strategy/bfInvestStrategy/save',
    method: 'post',
    data: data
  })
}

// 删除投资策略
export function delBfInvestStrategy(id) {
  return request({
    url: '/strategy/bfInvestStrategy/' + id,
    method: 'delete'
  })
}

// 导出投资策略
export function exportBfInvestStrategy(query) {
  return request({
    url: '/strategy/bfInvestStrategy/export',
    method: 'get',
    params: query
  })
}

// 根据项目ID获取投资策略信息
export function getInvestStrategyByDealId(dealId) {
  return request({
    url: '/strategy/bfInvestStrategy/getInvestStrategyByDealId/' + dealId,
    method: 'get'
  })
}
